<include file="Common:header" />
<body>
<script src="<{:__PUBLIC__}>/js/LodopFuncs.js"></script>

<style type="text/css">
<{$printcss}>
</style>

<div id="PrintArea" class="PrintArea">
<{$printhtml}>
</div>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0 style="margin:0;padding:0;"> 
	<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="install_lodop32.exe"></embed>
</object>
<p style="margin-top:"> <a href="javascript:prn1_preview()">打印预览</a>,  <a href="javascript:prn1_print()">直接打印</a>也可      
<a href="javascript:prn1_printA()">选择打印机</a>打印。<br>
<a href="javascript:prn1_predesign()">打印设计</a>
<br></p>


<script language="javascript" type="text/javascript">   
    var LODOP; //声明为全局变量 
	function prn1_preview() {	
		CreateOneFormPage();	
		LODOP.PREVIEW();	
	};
	function prn1_print() {		
		CreateOneFormPage();
		
		try{
			LODOP.PRINT();	
			<{$printtimejs}>
		}catch($e){			
		}
			
		
	};
	function prn1_printA() {		
		CreateOneFormPage();
		LODOP.PRINTA(); 	
	};	
	function prn1_predesign() {	
		CreateOneFormPage();	
		LODOP.PRINT_DESIGN();			
	};
	function CreateOneFormPage(){
		LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));  
		//LODOP.PRINT_INIT("trade_print");
		
		//LODOP.SET_PRINT_STYLE("FontSize",10);
		//LODOP.SET_PRINT_STYLE("Bold",1);
		<{$printjs}>
		//LODOP.ADD_PRINT_TEXT(50,231,260,39,"打印页面部分内容");
		//LODOP.ADD_PRINT_HTM(88,200,350,600,document.getElementById("PrintArea").innerHTML);
	};	
</script>
</body>
</html>